package org.xinjiang.tarim.travel.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.xinjiang.tarim.travel.mapper.ImpressionFileMapper;
import org.xinjiang.tarim.travel.model.ImpressionFile;
import org.xinjiang.tarim.travel.service.ImpressionFileService;

import java.util.List;

@Service
public class ImpressionFileServiceImpl implements ImpressionFileService {
    @Autowired
    ImpressionFileMapper mapper;

    @Override
    public List<ImpressionFile> insert(List<ImpressionFile> impressionFiles) {
        mapper.insert(impressionFiles);
        return impressionFiles;
    }

    @Override
    public List<ImpressionFile> selectByImpressionId(Long impressionId) {
        return mapper.selectByImpressionId(impressionId);
    }
}
